//微信--消息推送
import React from 'react';
import { Form, Input, Button } from 'antd';
import axios from '../../utils/http';
class WeiXinPushInfo extends React.Component {
  state = {
    wordId: '',
  };
  setWord = val => {
    this.setState({
      wordId: val,
    });
  };
  submit = () => {
    axios({
      url: '',
    });
  };
  render() {
    return (
      <div style={{ width: '600px' }}>
        <Form>
          <Form.Item
            label="文章ID"
            name="wordId"
            rules={[
              {
                required: true,
                message: '请输入文章ID',
              },
            ]}
            hasFeedback
          >
            <Input
              placeholder="直接填写文章编号多个使用“,”分割"
              onChange={e => this.setWord(e.target.value)}
            />
          </Form.Item>
          <Form.Item>
            <Button onClick={this.submit} type="primary">
              确认
            </Button>
          </Form.Item>
        </Form>
      </div>
    );
  }
}

export default WeiXinPushInfo;
